$OpenBSD: patch-src_plugins_c,v 1.1.1.1 2011/11/16 16:52:01 phessler Exp $
--- src/plugins.c.orig	Tue Nov 15 23:38:30 2011
+++ src/plugins.c	Tue Nov 15 23:39:01 2011
@@ -4,6 +4,7 @@
 // released under the GNU GPL 3 or later
 // see file ../COPYING or www.gnu.org for licensing details
 
+#include <sys/stat.h>
 #include <dlfcn.h>
 #include <errno.h>
 
